package com.zynote.nfhoujie.dao.impl;

import org.springframework.stereotype.Repository;

import com.zynote.commons.base.BaseDAOHibernate;
import com.zynote.nfhoujie.dao.IUserInfoDAO;
import com.zynote.nfhoujie.model.UserInfo;

/**
 * 
 * @className:UserInfoDAOImple.java
 * @classDescription:用户数据访问层实现类
 * @author: AIDAN SU
 * @createTime: 2012-10-7
 *
 */

@Repository("userInfoDAO")
public class UserInfoDAOImple extends BaseDAOHibernate implements IUserInfoDAO {

	@Override
	protected Class<?> getModelClass() {
		return UserInfo.class;
	}

	@Override
	public Long createUserInfo(UserInfo userInfo) {
		return (Long)doCreateObject(userInfo);
	}
	
	@Override
	public UserInfo findUserInfoById(Long id) {
		return (UserInfo)doFindObjectById(id);
	}

	@Override
	public void updateUserInfo(UserInfo userInfo) {
		doUpdateObject(userInfo);
	}
}
